package com.kyub.spring.gears.model;

import com.kyub.spring.gears.services.DaoService;

import java.util.Map;

/**

 */
public class PojoRegistry {

    private Map<String, PojoRegistryEntry> registry;

    public Map getRegistry() {
        return registry;
    }

    public void setRegistry(Map<String, PojoRegistryEntry> registry) {
        this.registry = registry;
    }

    public DaoService getManager(String pojo) {

        return registry.get(pojo).getDao();

    }

    public PojoRegistryEntry getPojoConf(Object key) {
        return registry.get(key);
    }
}
